package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1EmptyDirVolumeSourceBuilder extends io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluentImpl<io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceBuilder> implements io.kubernetes.client.fluent.VisitableBuilder<io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource,io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceBuilder>{
  public V1EmptyDirVolumeSourceBuilder() {
    this(false);
  }
  public V1EmptyDirVolumeSourceBuilder(java.lang.Boolean validationEnabled) {
    this(new V1EmptyDirVolumeSource(), validationEnabled);
  }
  public V1EmptyDirVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent<?> fluent) {
    this(fluent, false);
  }
  public V1EmptyDirVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent<?> fluent,java.lang.Boolean validationEnabled) {
    this(fluent, new V1EmptyDirVolumeSource(), validationEnabled);
  }
  public V1EmptyDirVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent<?> fluent,io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance) {
    this(fluent, instance, false);
  }
  public V1EmptyDirVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent<?> fluent,io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance,java.lang.Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withMedium(instance.getMedium());

    fluent.withSizeLimit(instance.getSizeLimit());

    this.validationEnabled = validationEnabled; 
  }
  public V1EmptyDirVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance) {
    this(instance,false);
  }
  public V1EmptyDirVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance,java.lang.Boolean validationEnabled) {
    this.fluent = this; 
    this.withMedium(instance.getMedium());

    this.withSizeLimit(instance.getSizeLimit());

    this.validationEnabled = validationEnabled; 
  }
  io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent<?> fluent;
  java.lang.Boolean validationEnabled;
  public io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource build() {
    V1EmptyDirVolumeSource buildable = new V1EmptyDirVolumeSource();
    buildable.setMedium(fluent.getMedium());
    buildable.setSizeLimit(fluent.getSizeLimit());
    return buildable;
  }
  public boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    V1EmptyDirVolumeSourceBuilder that = (V1EmptyDirVolumeSourceBuilder) o;
    if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;

    if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(fluent,  validationEnabled,  super.hashCode());
  }
  
}